<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ page import="crm.model.Salearea" %>
<%@ page import="crm.control.SaleareaControl"%>
<%@ page import="java.util.*"  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../resources/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../../resources/css/inner.css" type="text/css" media="screen" />
<style type='text/css'>
 a{font-size:12px; text-decoration:none; color:#70B300;}
</style>
    <title>修改销售区域</title>
  </head>
  
<body>
    <%
  	request.setCharacterEncoding("UTF-8");
  	int id =Integer.parseInt(request.getParameter("id"));
  	SaleareaControl nc = new SaleareaControl();
  	Salearea salearea = nc.getOneSaleareaById(id);
  %>
   
   <form name="f" action="salearea_updatedo.jsp?id=<%=id%>" method="post" onSubmit="return checkform(this);">
   <table>
        <tr>
            <td>区域名</td>
          <td>
             <input type="text" id="area_name" name="area_name" value="<%=salearea.getArea_name()%>" /><br>
          </td>
         </tr>
       <tr>
           <td>销售目标</td>
            <td>
            <textarea id="sale_target"  name="sale_target" style='width: 252px; height:230px;'><%out.println(salearea.getSale_target());%></textarea>
            </td>
        </tr>
     	<tr>		
        <td>竞争对手</td>
	    <td>
	    	<input id="competitor" name="competitor"  value="<%=salearea.getCompetitor()%>" />
	    </td>
</tr>
<tr>
   <td style='text-align:center' colspan='2'>
	<input type="submit" id="submit" class='button' value="提交" />&nbsp;&nbsp;&nbsp;&nbsp;
	<input type="reset" class='button' value="取消" onClick="window.location.href='salearea.jsp'"/>
	</td> 
	</tr>
</table>
</form>
  </body>
</html>
